//
//  RORegisterReturnModel.swift
//  NeusoftSchool
//
//  Created by 李狗蛋 on 2017/3/27.
//  Copyright © 2017年 李狗蛋. All rights reserved.
//

import UIKit
/*{
 userid = 1;
 } */
class RORegisterReturnModel: NSObject {
    var success: NSString
    var msg: NSString
    override init() {
        success = NSString()
        msg = NSString()
    }
    class func registerReeturnModelWithDict(_ dict: NSDictionary ) -> RORegisterReturnModel{
        let model = RORegisterReturnModel()
        //根据字典，进行模型的初始化
        let success = dict.object(forKey: "success") as! NSString
        model.success = success
        
        if success == "0" {
            let msg = "用户名或者密码错误"
            model.msg = msg as NSString
        }
        return model
    }
}
